import Mock from 'mockjs';

let object = [{
		key: "/kh/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'DATA': {
				"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,					
				"nc": "@cword(6,9)",
				"sex|1": [1, 2],
				"headimg": "@image('200x200')",
				'tel|11': /[0-9]/,
				"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
				"deposit_amount|0-999.1-2":999,
			}
		})
	},

	{
		key: "/kh/page",
		method: "get",
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"nc": "@cword(6,9)",
						"sex|1": [1, 2],
						"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"headimg": "@image('200x200')",
						'tel|11': /[0-9]/,
						"deposit_amount|0-999.1-2":999,
					}]
				}
			});
		}
	},
	{
		key: "/kh/info",
		method: "delete",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
	{
		key: "/kh/info",
		method: "put",
		data: function() {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': "",
			});
		}
	},
];

export default object;